import * as ReactDOMClient from "react-dom/client";
import { BrowserRouter } from "react-router-dom";
import { Provider } from 'react-redux';
import App from "./App";
import {store,persistor} from "./redux/store";
import { PersistGate } from 'redux-persist/integration/react'

const rootElement = document.getElementById("root");
const root = ReactDOMClient.createRoot(rootElement);

root.render(
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
     <BrowserRouter>
   <App/>
   </BrowserRouter>
   </PersistGate>
</Provider>
 
);
